--铁腕扼绝
local tiewanejue = fk.CreateSkill {
    name = "mcdh_tiewanejue",
    tags={Skill.Compulsory,Skill.Lord}
}

tiewanejue:addEffect("maxcards",{
    correct_func=function (self, player)
        if player:hasSkill(tiewanejue.name) then
            return player:getLostHp()
        end
    end
})

tiewanejue:addEffect("atkrange",{
    correct_func=function (self, from, to)
        if from:hasSkill(tiewanejue.name) then
            return from:getLostHp()
        end
    end
})

tiewanejue:addEffect("targetmod", {
  residue_func = function(self, player, skill, scope, card)
    if card and card.trueName == "slash" and player:hasSkill(tiewanejue.name)  then
      return player:getLostHp()
    end
  end,
})

Fk:loadTranslationTable {
    ["mcdh_tiewanejue"] = "铁腕扼绝",
    [":mcdh_tiewanejue"] = "主公技，锁定技，你的手牌上限、使用【杀】的限制次数、攻击范围+X。（X为你已损失的体力值）",
}

return tiewanejue